home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / src / shell13s.zoo / shell1.3 / Makefile.in < prev    next >
Encoding:
Makefile  |  1991-10-17  |  4.4 KB  |  128 lines

  1. # Master Makefile for the GNU shell programming utilities.
  2. # Copyright (C) 1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = @srcdir@
  23. @VPATH@
  24.  
  25. # If you use gcc, you should either run the fixincludes script that
  26. # comes with it or else use gcc with the -traditional option.  Otherwise
  27. # ioctl calls will be compiled incorrectly on some systems.
  28. CC = @CC@
  29. AR = ar
  30. # Set RANLIB = echo if your system doesn't have or need ranlib.
  31. RANLIB = @RANLIB@
  32. # Use cp if you don't have install.
  33. INSTALL = @INSTALL@
  34. INSTALLDATA = @INSTALLDATA@
  35.  
  36. # Things you might add to DEFS:
  37. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  38. # -DPOSIX        If you have POSIX.1 headers and libraries.
  39. # -DUSG            If you have System V/ANSI C string and
  40. #            memory functions and headers.
  41. # -DCHAR_UNSIGNED    If type `char' is unsigned.
  42. # -DVPRINTF_MISSING    If you lack vprintf function (but have _doprnt).
  43. # -DDOPRNT_MISSING    If you lack _doprnt function.  Also need to define
  44. #            -DVPRINTF_MISSING.
  45. # -DFTIME_MISSING    If you lack ftime system call.
  46. # -DTM_IN_SYS_TIME    If you need to include sys/time.h instead of
  47. #            time.h to get struct tm.
  48. # -DTM_ZONE_MISSING    If you lack tm_zone in struct tm; instead
  49. #            use tm_isdst and tzname.
  50. # -DTZNAME_MISSING    If you lack tm_zone and tzname; instead use
  51. #            tm_isdst and timezone.  Also need to define
  52. #            TM_ZONE_MISSING.  The -u option to date will
  53. #            not work.
  54. # -DC_LINE_MISSING    If you have struct termios but it lacks the
  55. #            c_line member.
  56. # -DNICE_PRIORITY    If you lack getpriority and setpriority system
  57. #            calls but have nice system call.
  58. # -DWINSIZE_IN_PTEM    If your system defines `struct winsize' in sys/ptem.h.
  59. # -DGWINSZ_BROKEN    If TIOCGWINSZ is defined but doesn't work.
  60.  
  61. DEFS = @DEFS@
  62.  
  63. CFLAGS = -g -I. -I../lib -I$(srcdir)/lib $(DEFS)
  64. LDFLAGS = -g
  65. LIBS = @LIBS@
  66.  
  67. prefix = /usr/local
  68.  
  69. # Where to install the executables.
  70. bindir = $(prefix)/gnubin
  71.  
  72. # Where to install the manual pages.
  73. mandir = $(prefix)/man/man1
  74. # Extension (not including `.') for the installed manual page filenames.
  75. manext = 1
  76.  
  77. #### End of system configuration section. ####
  78.  
  79. MDEFINES = bindir='$(bindir)' mandir='$(mandir)' manext='$(manext)' \
  80. LIBS='$(LIBS)' AR='$(AR)' RANLIB='$(RANLIB)' \
  81. INSTALL='$(INSTALL)' INSTALLDATA='$(INSTALLDATA)' \
  82. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  83.  
  84. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README configure
  85.  
  86. # Subdirectories to run make in for the primary targets.
  87. SUBDIRS = lib src man
  88.  
  89. all:
  90.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  91. .PHONY: all
  92.  
  93. install:
  94.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  95. .PHONY: install
  96.  
  97. tags:
  98.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  99. .PHONY: tags
  100.  
  101. TAGS:
  102.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  103. .PHONY: TAGS
  104.  
  105. clean:
  106.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  107. .PHONY: clean
  108.  
  109. distclean:
  110.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  111.     rm -f Makefile config.status
  112. .PHONY: distclean
  113.  
  114. realclean:
  115.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  116.     rm -f Makefile config.status
  117. .PHONY: realclean
  118.  
  119. dist:
  120.     echo shellutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q < src/version.c` > .fname
  121.     rm -rf `cat .fname`
  122.     mkdir `cat .fname`
  123.     ln $(DISTFILES) `cat .fname`
  124.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  125.     tar chZf `cat .fname`.tar.Z `cat .fname`
  126.     rm -rf `cat .fname` .fname
  127. .PHONY: dist
  128.